import { rcaNumberFormat0,get_month_first,get_date } from './common.js'
import { commonTableOption } from './common.js'
import { dateFormat } from '@/util/date';
export const startDate = get_month_first(0);
export const endDate = get_date(0);
export const tableOption = {
  ...commonTableOption,
  height: 450,
  column: [
  {
    type: 'date',
    label: '日期',
    searchSpan: 12,
    width: 180,
    searchRange: true,
    search: true,
    searchValue: [startDate, endDate], 
    format: 'yyyy-MM-dd',
    valueFormat: 'yyyy-MM-dd',
    prop: 'tradeDate',
  },
  {
    label: '一二五九十四号线',
    children: [
      {
        type: 'input',
        label: 'TVM支付宝',
        prop: 'tvmAlipayA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: 'TVM微信',
        prop: 'tvmWeChatA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: 'TVM对账支付宝',
        prop: 'tvmReconciliationAlipayA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: 'TVM对账微信',
        prop: 'tvmReconciliationWeChatA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: '支付宝差异',
        prop: 'alipayDifferenceA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: '微信差异',
        prop: 'weChatDifferenceA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: '差异合计',
        prop: 'diffSumA',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }
    ]
  },
  {
    label: '三四六号线',
    children: [
      {
        type: 'input',
        label: 'TVM支付宝',
        prop: 'tvmAlipayB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: 'TVM微信',
        prop: 'tvmWeChatB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: 'TVM对账支付宝',
        prop: 'tvmReconciliationAlipayB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: 'TVM对账微信',
        prop: 'tvmReconciliationWeChatB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: '支付宝差异',
        prop: 'alipayDifferenceB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: '微信差异',
        prop: 'weChatDifferenceB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }, {
        type: 'input',
        label: '差异合计',
        prop: 'diffSumB',
        width: 120,
        showSummary: true,
        precision: 2,
        formatter: (row, value, label, column) => {
          return rcaNumberFormat0(value,true)
        },
      }
    ]
  }
  ]
}
